import request from '@/utils/request';

import {
  TEST_URL
} from "@/api/API_CONFIG";

//巡检架次统计明细-区域统计
export function kanbanDetailFlightRegional(params) {
  return request({
    url: `${TEST_URL}/v1/kanban/flight_regional`,
    method: 'get',
    params
  })
}

//巡检架次统计明细-时间统计
export function kanbanDetailFlightTime(params) {
  return request({
    url: `${TEST_URL}/v1/kanban/flight_time`,
    method: 'get',
    params
  })
}
//事件分类统计明细-区域统计222
export function kanbanDetailEventRegional2(params) {
  return request({
    url: `${TEST_URL}/v1/problem_count/problem_region`,
    method: 'get',
    params
  })
}
//事件分类统计明细-分类统计222
export function kanbanDetailEventType2(params) {
  return request({
    url: `${TEST_URL}/v1/problem_count/problem_type`,
    method: 'get',
    params
  })
}
//事件统计归属地
export function getEventComplete(params) {
  return request({
    url: `${TEST_URL}/v1/problem_count/count_rate`,
    method: 'get',
    params
  })
}
//事件统计类型
export function problemCountTypeRate(params) {
  return request({
    url: `${TEST_URL}/v1/problem_count/count_type_rate`,
    method: 'get',
    params
  })
}


//获取机巢所在区县
export function kanbanNestDistrict(params) {
  return request({
    url: `${TEST_URL}v1/kanban/nest_district`,
    method: 'get',
    params
  })
}

//巡检成果统计明细-区域统计
export function kanbanDetailResultRegional(params) {
  return request({
    url: `${TEST_URL}/v1/kanban/result_regional`,
    method: 'get',
    params
  })
}

//巡检成果统计明细-时间统计
export function kanbanDetailResultTime(params) {
  return request({
    url: `${TEST_URL}/v1/kanban/result_time`,
    method: 'get',
    params
  })
}

//根据名称查询经纬度
export function locationDistrict(params) {
  return request({
    url: `${TEST_URL}/v1/landmark/tianditu_district`,
    method: 'get',
    params
  })
}

export function getProblem(params) {
  return request({
    url: `${TEST_URL}/v1/kanban/issue/detail`,
    method: 'get',
    params
  })
}
// 获取问题点图片时间轴
export function problemHistory(params) {
  return request({
    url: `${TEST_URL}/v1/problem_query/problem_history`,
    method: 'post',
    data: params
  })
}
export function markProjection(params) {
  return request({
    url: `${TEST_URL}/v1/background/mark/projection`,
    method: 'post',
    data: params
  })
}

export function getMarkPlat(params) {
  return request({
    url: `${TEST_URL}/v1/markinfo/get_mark_plat`,
    method: 'post',
    data: params
  })
}
